package com.manage.common.core.enums;

import com.manage.common.core.exception.assertion.ValidateExceptionAssert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhangqing
 * @description 验证码错误枚举类
 * @date 2021/6/14 10:23 上午
 */
@Getter
@AllArgsConstructor
public enum ValidateEnum implements ValidateExceptionAssert {

    /**
     * 验证码错误枚举类
     */
    VALIDATE_INFO_NULL(412, "验证码信息为空"),
    VALIDATE_NULL(412, "验证码为空"),
    VALIDATE_NOT_LEGAL(412, "验证码不合法"),
    VALIDATE_LOSE_EFFICACY(412, "验证码已失效"),
    VALIDATE_INCORRECTNESS(412, "验证码不正确");
    private final int code;

    private final String message;
}
